package com.itheima.service;



import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    public void addRole(Role role, Integer[] permissionIds, Integer[] menuIds);
    public void update(Role role, Integer[] permissionIds, Integer[] menuIds);
    public void delete(Integer id);
    public PageResult findPage(QueryPageBean queryPageBean);
    public List<Permission> findAllPermission();
    public List<Menu> findAllMenu();
    public Role findRoleById(Integer id);
    Integer[] findMidsByRid(Integer id);
    Integer[] findPidsByRid(Integer id);
    public List<Role> findAll();
}
